<template>
	<view class="wrap">
		<image :src="getImageURL(img)" class="file" v-if="img !== ''"></image>

		<view class="title">{{ text }}</view>
	</view>
</template>

<script>
	export default {
		props: {
			text: {
				type: String,
				default: "暂无数据",
			},
			img: {
				type: String,
				default: "common/noData.png",
			},
		},
	};
</script>

<style lang="scss" scoped>
	.wrap {
		padding: 20rpx;
		box-sizing: border-box;
		width: 100%;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		align-items: center;

		.file {
			width: 400rpx;
			height: 400rpx;
		}

		.title {
			margin-top: 30rpx;
			color: #999999;
			font-size: 28rpx;
		}
	}
</style>
